<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h2>二级页面<span id="span"></span></h2>
    <script>
        document.domain='127.0.0.1'
        var data=parent.data
        console.log(data);
        var span=document.getElementById('span')
        span.innerHTML=data


    </script>

</body>
</html>